<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
		<link rel="stylesheet" href="../css/font-awesome/css/font-awesome.css">
	</head>

	<body ng-app="app" >
		<newlist></newlist>
		<script>
			var app=angular.module("app",[]);
			app.directive("newlist",function () {
				return {
				    restrict:"E",//a attr e element c class
					template:"<h1>替换</h1>",
					replace:false
				};
            });
		</script>
	</body>
</html>
